package com.ytzl.gotrip.service;

import com.ytzl.gotrip.model.GotripUser;
import com.ytzl.gotrip.utils.exception.GotripException;
import com.ytzl.gotrip.vo.userinfo.ItripUserVO;

public interface GotripUserService {
    /**根据登录账号查询用户信息ps:包含密码*/
    public GotripUser findByUserCode(String userCode) throws Exception;
    /**
    通过手机号注册用户数据*/
    public void registerByPhone(ItripUserVO itripUserVo) throws Exception;

    /**
     * 手机账号激活
     * @param user 登录账号
     * @param code 验证码
     */
    void validatePhone(String user, String code) throws Exception;

    /**
     *
     * @param user 用户账号
     * @param code 验证码
     * @throws Exception
     */
    void validateEmail(String user, String code) throws Exception;

    /**
     * 使用邮箱进行验正
     * @param itripUserVO
     */
    void registerByEamil(ItripUserVO itripUserVO) throws Exception;
}
